#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
int n;

int main(){
    LL d, ans = 0;
    cin>>n>>d;
    for(int i = 1; i <= n; i++){
        LL x, y;
        cin>>x>>y;
        if(x * x + y * y <= d * d) ++ans;
    }
    cout<<ans<<endl;
    return 0;
}